﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Exhibition.Dao.ViewModel;
using Exhibition.Service;

namespace Exhibition.UserCenter
{
    public partial class UserDetail : BaseUserPage
    {
        public UserModel umdl = new UserModel();
        public UserCompModel cmpMdl = new UserCompModel();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetUserDetail();
            }
        }

        private void GetUserDetail()
        {
            umdl = CenterService.userService.GetOneById(reqID);
            if (umdl != null)
            {
                cmpMdl = umdl.compMdl;
            }
        }
    }
}